package com.mock.action.lesson;

import java.util.Date;

import com.mock.dao.LessonDao;
import com.mock.dao.impl.LessonDaoImpl;
import com.mock.model.Lesson;
import com.opensymphony.xwork2.ActionSupport;

public class AddLessonAction extends ActionSupport{

	
	private String name;
	private Date createdDate;
	private Date openDate;
	private Date closeDate;
	private Float price;
	private String trainer;
	private Boolean isClosed;
	
	private Lesson lesson;
	private LessonDao lessonDao = new LessonDaoImpl();
	
	public String execute() {
		System.err.println(lesson.getName());
		//lessonDao.add(lesson);
		return SUCCESS;
	}

	public Lesson getLesson() {
		return lesson;
	}

	public void setLesson(Lesson lesson) {
		this.lesson = lesson;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Date getCreatedDate() {
		return createdDate;
	}

	public void setCreatedDate(Date createdDate) {
		this.createdDate = createdDate;
	}

	public Date getOpenDate() {
		return openDate;
	}

	public void setOpenDate(Date openDate) {
		this.openDate = openDate;
	}

	public Date getCloseDate() {
		return closeDate;
	}

	public void setCloseDate(Date closeDate) {
		this.closeDate = closeDate;
	}

	public Float getPrice() {
		return price;
	}

	public void setPrice(Float price) {
		this.price = price;
	}

	public String getTrainer() {
		return trainer;
	}

	public void setTrainer(String trainer) {
		this.trainer = trainer;
	}

	public Boolean getIsClosed() {
		return isClosed;
	}

	public void setIsClosed(Boolean isClosed) {
		this.isClosed = isClosed;
	}
	
	
	
}
